import {
  SAVE_IS_BELL,
  SAVE_MACHINE_STATUS,
  SAVE_MELT_DATA,
  SAVE_PAUSE_CACHE_TIME,
  SAVE_PCR_DATA,
  SAVE_REMAIN_TIME,
  SAVE_RUN_EXPERIMENT_NAME,
  SAVE_RUN_PERCENT,
  SAVE_RUN_START,
  SAVE_RUN_TIME,
  SAVE_START_TIME,
  SAVE_START_TIME_STAMP,
  SAVE_STOP_TIME,
  SAVE_TEMP_DATA,
  SAVE_OPEN_BELL,
  SAVE_CURRENT_PERENT
} from "./constants";

export const saveRunStart = runStart => ({
  type: SAVE_RUN_START,
  runStart
});

export const saveCurrentTempData = currentTempData => ({
  type: SAVE_TEMP_DATA,
  currentTempData
});

export const saveMachineStatus = machineStatus => ({
  type: SAVE_MACHINE_STATUS,
  machineStatus
});

export const savePcrData = pcrData => ({
  type: SAVE_PCR_DATA,
  pcrData
});

export const saveMeltData = meltData => ({
  type: SAVE_MELT_DATA,
  meltData
});

export const saveStartTime = startTime => ({
  type: SAVE_START_TIME,
  startTime
});

export const saveStopTime = stopTime => ({
  type: SAVE_STOP_TIME,
  stopTime
});

export const saveRunTime = runTime => ({
  type: SAVE_RUN_TIME,
  runTime
});

export const saveRemainTime = remainTime => ({
  type: SAVE_REMAIN_TIME,
  remainTime
});

export const saveRunPercent = runPercent => ({
  type: SAVE_RUN_PERCENT,
  runPercent
});

export const saveIsBell = isBell => ({
  type: SAVE_IS_BELL,
  isBell
});

export const saveOpenBell = openBell => ({
  type: SAVE_OPEN_BELL,
  openBell
});

export const saveRunExperimentName = runExperimentName => ({
  type: SAVE_RUN_EXPERIMENT_NAME,
  runExperimentName
});

export const saveStartTimeStamp = startTimeStamp => ({
  type: SAVE_START_TIME_STAMP,
  startTimeStamp
});

export const savePauseCacheTime = pauseCacheTime => ({
  type: SAVE_PAUSE_CACHE_TIME,
  pauseCacheTime
});

export const saveCurrentPercent = currentPercent => ({
  type: SAVE_CURRENT_PERENT,
  currentPercent
});
